package com.home.free.manager.impl;

import com.home.free.dao.MemoryDao;
import com.home.free.entity.Memory;
import com.home.free.manager.MemoryManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author gaotianjie
 */
@Component
public class MemoryManagerImpl implements MemoryManager {
    @Autowired
    private MemoryDao memoryDao;

    @Override
    public int insert(Memory memory) {
        return memoryDao.insert(memory);
    }

}
